"""Various nifty functions that are required in lots of places"""

import sys

import config
import debug

def error(e):
    if config.debug:
        raise e
    else:
        sys.stderr.write("\nAn error occurred. Please supply the following"
                         "information to the developers:\n" + str(e) + "\n\n")
